package com.wh.wisdomsite.xbox.us.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体
 *
 * @version V1.0
 * @Package: com.wh.wisdomsite.xbox.us.entity
 * @author: 丁奕
 * @date: 2018-08-03 15:51
 * @Copyright 公司版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2016
 **/
@TableName("us_user")
public class User extends Model<User> {


    /**
     *PK, 用户ID
     */
    @TableId(type = IdType.UUID)
    private String usId;

    /**
     *FK, 所属公司
     */
    @TableField("companyId")
    private Integer companyId;

    /**
     *FK, 所属员工
     */
    @TableField("emId")
    private String emId;

    /**
     * FK, 三方用户ID
     */
    @TableField("openUid")
    private String openUid;

    /**
     * 三方用户ID所属平台
     */
    @TableField("platform")
    private String platform;

    /**
     *登录名
     */
    @TableField("loginName")
    private String loginName;

    /**
     *密码
     */
    @TableField("password")
    private String password;

    /**
     *手机
     */
    @TableField("userPhone")
    private String userPhone;

    /**
     *用户头像,公共附件 
     */
    @TableField("userPhoto")
    private String userPhoto;

    /**
     *最后登录IP
     */
    @TableField("loginIp")
    private String loginIp;

    /**
     *最后登录时间
     */
    @TableField("loginDate")
    private Date loginDate;

    /**
     *登录状态
     */
    @TableField("loginStatus")
    private String loginStatus;

    /**
     *是否接收警报：1接收，2不接收
     */
    @TableField("receiveAlarm")
    private String receiveAlarm;

    /**
     *密码错误次数
     */
    @TableField("pwdErrCount")
    private Integer pwdErrCount;

    /**
     *禁用截止时间
     */
    @TableField("disabledTime")
    private Date disabledTime;

    /**
     *创建者
     */
    @TableField("createBy")
    private String createBy;

    /**
     *创建时间
     */
    @TableField("createDate")
    private Date createDate;

    /**
     *更新者
     */
    @TableField("updateBy")
    private String updateBy;

    /**
     *更新时间
     */
    @TableField("updateDate")
    private Date updateDate;

    /**
     *备注
     */
    @TableField("remark")
    private String remark;

    /**
     *数据状态
     */
    @TableField("dataState")
    private String dataState;

    /**
     * 所属公司实体，不入库
     */
    @TableField(exist = false)
    private Company company;

    public String getUsId() {
        return usId;
    }

    public void setUsId(String usId) {
        this.usId = usId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getEmId() {
        return emId;
    }

    public void setEmId(String emId) {
        this.emId = emId;
    }

    public String getOpenUid() {
        return openUid;
    }

    public void setOpenUid(String openUid) {
        this.openUid = openUid;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

    public String getLoginStatus() {
        return loginStatus;
    }

    public void setLoginStatus(String loginStatus) {
        this.loginStatus = loginStatus;
    }

    public String getReceiveAlarm() {
        return receiveAlarm;
    }

    public void setReceiveAlarm(String receiveAlarm) {
        this.receiveAlarm = receiveAlarm;
    }

    public Integer getPwdErrCount() {
        return pwdErrCount;
    }

    public void setPwdErrCount(Integer pwdErrCount) {
        this.pwdErrCount = pwdErrCount;
    }

    public Date getDisabledTime() {
        return disabledTime;
    }

    public void setDisabledTime(Date disabledTime) {
        this.disabledTime = disabledTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDataState() {
        return dataState;
    }

    public void setDataState(String dataState) {
        this.dataState = dataState;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    @Override
    protected Serializable pkVal() {
        return this.usId;
    }
}
